package org.lanettiesso.dubbo.simple.schema;

import org.lanettiesso.dubbo.simple.bean.Application;
import org.lanettiesso.dubbo.simple.bean.Protocol;
import org.lanettiesso.dubbo.simple.bean.Registry;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

public class SimpleDubboNamespaceHandler extends NamespaceHandlerSupport {

    @Override
    public void init() {
        registerBeanDefinitionParser("application", new SimpleDubboBeanDefinitionParser(Application.class));
        registerBeanDefinitionParser("registry", new SimpleDubboBeanDefinitionParser(Registry.class));
        registerBeanDefinitionParser("protocol", new SimpleDubboBeanDefinitionParser(Protocol.class));
    }

}
